package com.itheima.method;

public class Demo2Method {
    public static void main(String[] args) {
        System.out.println("main方法开始了");
        eat();
        System.out.println("main方法结束了");

    }
    public static void eat(){
        System.out.println("eat开始了");
        study();
        System.out.println("吃饭");
        System.out.println("eat结束了");
    }
    public static void study(){
        System.out.println("study开始了");
        System.out.println("学习");
        System.out.println("study结束了");
    }
}
